<?php
$this->pageTitle=Yii::app()->name . ' - Login';
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/head.0.99.min.js');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/reset.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/basic.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/jquery.wijmo-pro.all.3.20132.8.min.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/themes/metro/jquery-wijmo.css');
?>
<script type="application/javascript">
	head.js(
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-1.9.1.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-ui-1.10.3.custom.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery.wijmo-open.all.3.20132.8.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery.wijmo-pro.all.3.20132.8.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/jquery-layout.1.3.0.30.79.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/json2.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/underscore.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.wreqr.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.babysitter.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/backbone/backbone.marionette.min.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/login.js",
		"<?php echo Yii::app()->getHomeUrl();?>js/app/dialog.js",
		function() {
			if (App.debug) console.log('Login start');
			App.start();
	});
</script>
<?php echo $this->renderPartial('templates/login-dialog', null, true, false); ?>
